package co.bugu.code.analysis.service.entity;

import cn.idev.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Project {
    @ExcelProperty("头像地址")
    private String avatarUrl;

    @ExcelProperty("创建时间")
    private Date createdAt;

    @ExcelProperty("创建者ID")
    private Long creatorId;

    @ExcelProperty("默认分支")
    private String defaultBranch;

    @ExcelProperty("描述")
    private String description;

    @ExcelProperty("项目ID")
    private Long id;

    @ExcelProperty("是否公开")
    private Boolean isPublic;

    @ExcelProperty("最后活动时间")
    private Date lastActivityAt;

    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("带命名空间的名称")
    private String nameWithNamespace;

    @ExcelProperty("路径")
    private String path;

    @ExcelProperty("带命名空间的路径")
    private String pathWithNamespace;

    @ExcelProperty("SSH仓库地址")
    private String sshUrlToRepo;

    @ExcelProperty("网页地址")
    private String webUrl;

    @ExcelProperty("是否为空仓库")
    private Boolean emptyRepo;

    @ExcelProperty("README地址")
    private String readmeUrl;

    // --- 通用字段 ---
    @ExcelProperty("是否删除")
    private Boolean isDel;

    @ExcelProperty("创建时间")
    private Date createTime;

    @ExcelProperty("更新时间")
    private Date updateTime;

    // 如果数据库包含以下字段，请添加：
    @ExcelProperty("创建人")
    private String createUser;

    @ExcelProperty("更新人")
    private String updateUser;
}
